<template>
    <h3>Style绑定</h3>
    <p :style="{ color: activeColor, fontSize: fontSize }">Style绑定1</p>
    <p :style="styleObject">Style绑定2</p>
</template>

<script>
export default {
    data() {
        return {
            activeColor: "green",
            fontSize: "30px",
            styleObject: {
                color: "red",
                fontSize: "30px"
            }
        }
    }
}
</script>

